package light.head.model.el;

import java.io.Serializable;
/**
 * 
 */
public class CourseDataRelationPK implements Serializable{
	
	private static final long serialVersionUID = 4032768433526880754L;
	private Integer cc;				// 课程编号
	private Integer tdc;			// 培训资料编号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof CourseDataRelation)) {  
            return false;  
        }  
  
        final CourseDataRelation tcr = (CourseDataRelation) obj;
        if (!cc.equals(tcr.getCc())) {
            return false;
        }
        if (null == tdc || tdc.intValue() != tcr.getTdc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = tdc.hashCode();  
        result = 29 * result + cc.hashCode();  
        return result;  
	}
	
	public Integer getCc() {
		return cc;
	}
	public void setCc(Integer cc) {
		this.cc = cc;
	}
	public Integer getTdc() {
		return tdc;
	}
	public void setTdc(Integer tdc) {
		this.tdc = tdc;
	}
}
